package com.yanjue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yanjue.common.entity.IndexBooklist;
import com.yanjue.vo.IndexBooklistVO;

/**
* @author yanju
* @description 针对表【index_booklist(精品页书单配置)】的数据库操作Service
* @createDate 2025-01-16 12:33:44
*/
public interface IndexBooklistService extends IService<IndexBooklist> {

    /**
     * 获取书单VO
     * @param booklistId
     * @param clientRandomNumber
     * @return
     */
    IndexBooklistVO getIndexBooklistVO(Integer booklistId, Integer clientRandomNumber);

    /**
     * 根据id获取书单信息
     * @param booklistId
     * @return
     */
    IndexBooklist getIndexBooklistById(Integer booklistId);

    /**
     * 书单随机获取
     * @param booklist
     * @param clientRandomNumber
     * @return
     */
    IndexBooklistVO getRandomIndexBooklistVO(IndexBooklist booklist, Integer clientRandomNumber);
}
